//导入request.js请求工具
import request from '@/utils/request.js'

//提供调用注册接口的函数
export const userRegisterService = (registerData)=>{
    return request.post('/register',registerData);
}

//提供调用登录接口的函数
export const userLoginService = (loginData)=>{
    return request.post('/login',loginData)
}

//获取用户详细信息
export const userInfoService = ()=>{
    return request.get('/getUser')
}